package com.woniu.learnhttps.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * created by woniu201
 * created in 2018/4/3
 */
@RestController
@CrossOrigin //该注解可以解决跨域问题
public class TestController {

    @RequestMapping(value = "/test", method = RequestMethod.GET)
    public String test1(){
        return "this is test https";
    }
}
